package com.demoLearn;

import java.time.LocalDate;
import java.time.temporal.TemporalAdjusters;

/**
 * @description:
 * @author: tutu
 **/
public class localdate {
    public static void main(String[] args) {
        LocalDate date = LocalDate.now();
        LocalDate firstday = date.with(TemporalAdjusters.firstDayOfMonth());
        LocalDate lastDay = date.with(TemporalAdjusters.lastDayOfMonth());
        System.out.println("firstday:" + firstday);
        System.out.println("lastDay:" + lastDay);
    }
}
